using System;
using System.Diagnostics;

namespace Microsoft.SqlServer.Tools.PublishWizard.Helpers
{
	internal class TraceHelpers
	{
		public static void TraceEnter(TraceSwitch traceSwitch)
		{
			if (traceSwitch.TraceVerbose)
			{
				StackTrace stackTrace = new StackTrace(1, true);
				StackFrame[] frames = stackTrace.GetFrames();
				if (frames == null || frames.Length == 0)
				{
					return;
				}
				frames[0].GetMethod();
			}
		}
	}
}
